@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  -ms-border-radius: $radius;
  border-radius: $radius;
}

@mixin border-top-left-radius($radius) {
  -webkit-border-top-left-radius: $radius;
  -moz-border-top-left-radius: $radius;
  border-top-left-radius: $radius;
}

@mixin border-top-right-radius($radius) {
  -webkit-border-top-right-radius: $radius;
  -moz-border-top-right-radius: $radius;
  border-top-right-radius: $radius;
}

@mixin border-bottom-left-radius($radius) {
  -webkit-border-bottom-left-radius: $radius;
  -moz-border-bottom-left-radius: $radius;
  border-bottom-left-radius: $radius;
}

@mixin border-bottom-right-radius($radius) {
  -webkit-border-bottom-right-radius: $radius;
  -moz-border-bottom-right-radius: $radius;
  border-bottom-right-radius: $radius;
}

@mixin box-shadow($shadow) {
  -webkit-box-shadow: $shadow;
  -moz-box-shadow: $shadow;
  box-shadow: $shadow;
}

@mixin clearfix {
  &:before {
    display: table;
    content: "";
  }

  &:after {
    display: table;
    clear: both;
    content: "";
  }
}

@mixin background-image-2x($image_name, $w: auto, $h: auto, $pos: top right, $repeat: no-repeat, $ext: png) {
  background: transparent url($image_name + '.' + $ext) $pos $repeat;
  background-size: $w $h;
  @media
    only screen and (-webkit-min-device-pixel-ratio: 2),
    only screen and (   min--moz-device-pixel-ratio: 2),
    only screen and (     -o-min-device-pixel-ratio: 2/1) {
      background: transparent url($image_name + '@2x.' + $ext) $pos $repeat;
      background-size: $w $h;
    }
}

@mixin center-transformX {
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  left: 50%;
}

@mixin flex-center {
  display: flex;
  justify-content: center;
}

@mixin flex-column {
  display: flex;
  flex-direction: column;
}

@mixin flex-column-r {
  display: flex;
  flex-direction: column-reverse;
}

@mixin responsive-sidebar-ui {
  background-color: #efefe7;
  z-index: 305;
  left: 0;
  box-shadow: 6px 2px 8px 0px rgba(28,28,28,0.10%);
  border: thin solid #ddd;
  border-radius: 0 5px 5px 0;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
